<?php
require_once "../vendor/autoload.php";

use Develop\Jwt\Jwt;


$config = require_once('./config.php');


$token = new Jwt($config, 'api');
$userId = 1;
# 生成jwt令牌
$jwt = $token->creatToken($userId);
# jwt加入黑名单
$token->cancelJwt($jwt);
# 验证jwt
$tokenStr = $token->verifyJwt($jwt);
var_dump($tokenStr);
